package homeWork.SOC4.mission_1;

public class Student extends Person {

    private String s_id;
    private String classes;
    private String hobby;

    public Student() {
    }

    public Student(String name,int age,String address,String s_id, String classes, String hobby) {
        super(name,age,address);
        this.s_id = s_id;
        this.classes = classes;
        this.hobby = hobby;
    }

    public String toString() {
        return "学生对象stu的信息如下:" + "\n" +
                super.toString() + " " +
                "学号: " + s_id + " " +
                "班级: " + classes + " " +
                "个人爱好: " + hobby + " " +
                "家庭住址: " + address;
    }
}
